
[dbo].[SoftCreditRelationshipType]
CREATE TABLE [dbo].[SoftCreditRelationshipType]
(
[SoftCreditRelationshipKey] [uniqueidentifier] NOT NULL,
[RelationshipTypeKey] [uniqueidentifier] NOT NULL,
[Percentage] [decimal] (12, 4) NOT NULL CONSTRAINT [DF_SoftCreditRelationshipType_Percentage] DEFAULT ((0)),
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SoftCreditRelationshipType] ADD CONSTRAINT [PK_SoftCreditRelationshipType] PRIMARY KEY CLUSTERED ([SoftCreditRelationshipKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SoftCreditRelationshipType] ADD CONSTRAINT [FK_SoftCreditRelationshipType_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO